package com.ruan.openfeign;

import com.ruan.entity.Role;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName:RoleCenterOpenfeign
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/29 11:07
 **/
@FeignClient(value = "role-center",path = "/role")
public interface RoleCenterOpenfeign {
    @RequestMapping("/getRoleById/{id}")
    public Role getRoleById(@PathVariable(value = "id") Integer id);
}
